package com.tt.service;

import com.tt.common.page.TtResult;
import com.tt.mapper.UserMapper;
import com.tt.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 青青
 */
@Service
public class UserServiceImpl implements IUserService
{

    @Autowired
    private UserMapper userMapper;

    @Override
    public TtResult selectByUser(User example)
    {
        List<User> users = userMapper.selectByUser(example);
        TtResult ok = TtResult.ok(users);
        return ok;
    }
}
